Add GitHub workflow to publish samples using latest NuGet version#3570
Add GitHub workflow to publish samples using latest NuGet version#3570
Conversation
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/7a553d15-0ed2-4945-ad10-20c6c694c220
|
@copilot i wa to always commit to the same samples branch. Also, can you add a parameter to pick the git sha for the sample to use. Also also I want to trigger on a release. Don't force push, just add a new commit. |
… force push Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/7df4a82e-892a-4246-a50f-bdf62b51d869
Done in caadc2e. Here's what changed:
|
|
@copilot please add a dry run support if triggers by PR so we can test. Do everything except the push. |
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/45099523-5ea1-4052-8713-bc2528b91283
Done in 990137c. Two ways to trigger a dry run:
In both cases everything up to and including |
|
@copilot we also need to run this if a PR touches this workflow file. Same with a push. If this file or a sample changes |
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/538d4d10-8dc0-4a64-8c94-fdb8551af7f9
Removed 'develop' and 'release/**' branches from workflow triggers.
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/e5eda0ca-b53c-46ea-bc6c-d4503131d11f
|
@copilot i currently have a samples branch for some other work. Please update the workflow to use docs-samples for now |
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/dab6ac4a-55a2-4976-9bd2-03126bd3b7c6
Adds a new GitHub Actions workflow (
.github/workflows/samples.yml) that automatically generates and publishes SkiaSharp samples to a dedicateddocs-samplesbranch.Description of Change
push,pull_request,release(published), andworkflow_dispatchsamples/**and.github/workflows/samples.ymlworkflow_dispatchinputs:version(NuGet version to use),sha(git SHA to build from),dry_run(skip push)scripts/VERSIONS.txtbefore generatingdotnet cake --target=samples-generatedocs-samplesbranch by cloning the existing branch (or initialising a fresh one), rsyncing generated output, and committing — preserving full history without force-pushingdry_runinput): runs the full clone/rsync/git add/git commit --allow-emptysequence, then skips the push and printsgit show --stat HEADso the diff can be reviewedBugs Fixed
None.
API Changes
None.
Behavioral Changes
None.
Required skia PR
None.
PR Checklist
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.